<%- content_for(:head) do -%>
  <title>NoiseTube.net  - Upload data</title>
<% end  %>
  <h2>Upload your data</h2>
<br />
  <p>

  <%= form_tag( {:action => 'uploadxml'}, {:multipart => true} ) do -%>


    <div class="intro">
      Select the xml file from your phone and then click "Upload and process" to upload your data. <br /><br />
    </div>
    <br/>
    <label for="file">XML file: </label><%= file_field_tag "xml_file" %><br/> <br/>
     <%= submit_tag "Upload and process" %>

  <% end -%>
    <% if flash[:error] %>
        <p style="color: red;"><%= flash[:error] %></p>
    <% end %>
  </p>

